#include "spisok.h"
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
#include<string.h>
void* print(Pointer data, Pointer user_data)
{
	fprintf((FILE *)user_data, "%d ", (int) data);
}

int main()
{
	FILE* pFile=stdout;
	SList* head=NULL;
        SList* k;
        SList* c;
	 SList* newh;
	SList* gh;
        int l;
        head=slist_append(head,1);
        head=slist_preppend(head,2);
        k=slist_find(head,2);
        slist_insert(k,1);

        
        head=slist_preppend(head,3);
        slist_remove_next(k);
        head=slist_preppend(head,4);
        l=slist_length(head);

        c=slist_copy(head);
       
		gh=slist_concat(head,c);
		slist_foreach(head,print,pFile);
	

	return 0;

}